<?php

/**
 * event form base class.
 *
 * @method event getObject() Returns the current form's model object
 *
 * @package    worldmap
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormGeneratedInheritanceTemplate.php 24171 2009-11-19 16:37:50Z Kris.Wallsmith $
 */
abstract class BaseeventForm extends entityForm
{
  protected function setupInheritance()
  {
    parent::setupInheritance();

    $this->widgetSchema   ['entity_id'] = new sfWidgetFormInputText();
    $this->validatorSchema['entity_id'] = new sfValidatorInteger();

    $this->widgetSchema   ['startdate'] = new sfWidgetFormDateTime();
    $this->validatorSchema['startdate'] = new sfValidatorDateTime();

    $this->widgetSchema   ['enddate'] = new sfWidgetFormDateTime();
    $this->validatorSchema['enddate'] = new sfValidatorDateTime();

    $this->widgetSchema->setNameFormat('event[%s]');
  }

  public function getModelName()
  {
    return 'event';
  }

}
